/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 我的礼物
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TMySiteGift")
public class TMySiteGift implements Serializable{

	private static final long serialVersionUID = 1L;

	private String MySiteGiftID;// CHAR(15) NULL,编号 主键
	
	private byte Status;// TINYINT NULL,状态
	
	private int GiftCount;// INTEGER NULL,数量
	
	private Date HappenTime;// DATETIME NULL,兑换时间

	private String Sender;// CHAR(15) NULL赠送人

	private TSiteGift TSiteGift;//礼物
	
	private TUser TUser;// 用户
	
	@Id
	@Column(name = "MySiteGiftID",length=15)
	public String getMySiteGiftID() {
		return MySiteGiftID;
	}

	public void setMySiteGiftID(String mySiteGiftID) {
		MySiteGiftID = mySiteGiftID;
	}

	@Column(name = "GiftCount")
	public int getGiftCount() {
		return GiftCount;
	}

	public void setGiftCount(int giftCount) {
		GiftCount = giftCount;
	}

	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Column(name = "Sender", length=15)
	public String getSender() {
		return Sender;
	}

	public void setSender(String sender) {
		Sender = sender;
	}
	@ManyToOne
	@JoinColumn(name="GiftID")
	public TSiteGift getTSiteGift() {
		return TSiteGift;
	}

	public void setTSiteGift(TSiteGift tSiteGift) {
		TSiteGift = tSiteGift;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
}
